package com.masterrabbit.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.masterrabbit.mapper.EmergencyRescueRecordsMapper;
import com.masterrabbit.domain.EmergencyRescueRecords;
import com.masterrabbit.service.IEmergencyRescueRecordsService;

/**
 * 应急救援记录Service业务层处理
 * 
 * @author laotu
 * @date 2025-03-19
 */
@Service
public class EmergencyRescueRecordsServiceImpl implements IEmergencyRescueRecordsService 
{
    @Autowired
    private EmergencyRescueRecordsMapper emergencyRescueRecordsMapper;

    /**
     * 查询应急救援记录
     * 
     * @param rescueId 应急救援记录主键
     * @return 应急救援记录
     */
    @Override
    public EmergencyRescueRecords selectEmergencyRescueRecordsByRescueId(Long rescueId)
    {
        return emergencyRescueRecordsMapper.selectEmergencyRescueRecordsByRescueId(rescueId);
    }

    /**
     * 查询应急救援记录列表
     * 
     * @param emergencyRescueRecords 应急救援记录
     * @return 应急救援记录
     */
    @Override
    public List<EmergencyRescueRecords> selectEmergencyRescueRecordsList(EmergencyRescueRecords emergencyRescueRecords)
    {
        return emergencyRescueRecordsMapper.selectEmergencyRescueRecordsList(emergencyRescueRecords);
    }

    /**
     * 新增应急救援记录
     * 
     * @param emergencyRescueRecords 应急救援记录
     * @return 结果
     */
    @Override
    public int insertEmergencyRescueRecords(EmergencyRescueRecords emergencyRescueRecords)
    {
        return emergencyRescueRecordsMapper.insertEmergencyRescueRecords(emergencyRescueRecords);
    }

    /**
     * 修改应急救援记录
     * 
     * @param emergencyRescueRecords 应急救援记录
     * @return 结果
     */
    @Override
    public int updateEmergencyRescueRecords(EmergencyRescueRecords emergencyRescueRecords)
    {
        return emergencyRescueRecordsMapper.updateEmergencyRescueRecords(emergencyRescueRecords);
    }

    /**
     * 批量删除应急救援记录
     * 
     * @param rescueIds 需要删除的应急救援记录主键
     * @return 结果
     */
    @Override
    public int deleteEmergencyRescueRecordsByRescueIds(Long[] rescueIds)
    {
        return emergencyRescueRecordsMapper.deleteEmergencyRescueRecordsByRescueIds(rescueIds);
    }

    /**
     * 删除应急救援记录信息
     * 
     * @param rescueId 应急救援记录主键
     * @return 结果
     */
    @Override
    public int deleteEmergencyRescueRecordsByRescueId(Long rescueId)
    {
        return emergencyRescueRecordsMapper.deleteEmergencyRescueRecordsByRescueId(rescueId);
    }
}
